package com.example.demo.utils.wx;

import com.example.demo.utils.resp.WxResult;

import java.io.Serializable;

public class WxTemplateResult implements Serializable {

    private int errcode;

    private String errmsg;

    private String msgid;

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getMsgid() {
        return msgid;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    public boolean isSuccess() {
        WxResult result = WxResult.get(errcode);
        return result != null && result.isSuccess();
    }

}
